package com.steven.design.XingWei_Pattern.ZeRenLian;

public class BanZhuRen extends Leader{

    @Override
    void handler(Integer leaveDays) {
        if(leaveDays <=7){
            System.out.println("我是班主任我通过的请假:"+leaveDays);
        }else {
            if(getNext() !=null){
                getNext().handler(leaveDays);
            }else {
                System.out.println("无人审批");
            }
        }
    }
}
